import request from '@/utils/request'

// 查询宿舍考勤列表
export function listStudentCheck(query) {
  return request({
    url: '/student/studentCheck/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍考勤详细
export function getStudentCheck(id) {
  return request({
    url: '/student/studentCheck/' + id,
    method: 'get'
  })
}

// 新增宿舍考勤
export function addStudentCheck(data) {
  return request({
    url: '/student/studentCheck',
    method: 'post',
    data: data
  })
}

// 修改宿舍考勤
export function updateStudentCheck(data) {
  return request({
    url: '/student/studentCheck',
    method: 'put',
    data: data
  })
}

// 删除宿舍考勤
export function delStudentCheck(id) {
  return request({
    url: '/student/studentCheck/' + id,
    method: 'delete'
  })
}

// 导出宿舍考勤
export function exportStudentCheck(query) {
  return request({
    url: '/student/studentCheck/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/student/studentCheck/importTemplate',
    method: 'get'
  })
}
